package com.spddr.pmos.cxf.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import com.spddr.pmos.cxf.JaxrsCustomerRisk;
import com.spddr.pmos.jpa.CustomerRisk;
import com.spddr.pmos.jpa.CustomerRiskId;
import com.spddr.pmos.repos.CustomerRiskRepos;

@Service
public class JaxrsCustomerRiskImpl implements JaxrsCustomerRisk {
	@Autowired
	private CustomerRiskRepos repository;

	@Override
	public JpaRepository<CustomerRisk, CustomerRiskId> getRepository() {
		return repository;
	}

	@Override
	public List<CustomerRisk> findByCustomer(long customer) {
		return repository.findByIdCustomer(customer);
	}

	@Override
	public void saveByCustomer(long customer, List<CustomerRisk> entities) {
		// TODO Auto-generated method stub

	}

	@Override
	public void deleteByCustomer(long customer) {
		// TODO Auto-generated method stub

	}
}
